package lpg;

import java.util.BitSet;

class BitSetElement
{
    BitSetElement(int capacity, int index)
    {
        this.bitSet = new BitSet(capacity);
        this.index  = index;
    }

    public boolean equals(Object obj)
    {
        if (obj == this)
            return true;
        if (!(obj instanceof BitSetElement))
            return false;

        BitSetElement element = (BitSetElement)obj;
        if (size != element.size)
            return false;
        return bitSet.equals(element.bitSet);
    }

    public int hashCode()
    {
        return bitSet.hashCode();
    }

    final BitSet bitSet;
    final int index;
          int size = 0;

}
